package org.quickstep.application.util;

import java.awt.KeyboardFocusManager;

import javax.swing.JOptionPane;

public final class Alerts {

	protected Alerts() {}

	public static final boolean confirm( String message ) {
		
		return JOptionPane.showConfirmDialog( 
				   KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow(),
				   message, 
				   "Confirmation", 
				   JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
		
	}
	
}
